package UIComponents.kfhd
{
	import Classes.GameUtils.MyTipSprite;
	import Classes.GameUtils.ToolTip_Sprite;
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class ContentXFSL extends Sprite
	{
		public var count:uint	=	0;
		public function ContentXFSL()
		{
			( this.getChildByName("txtCount") as TextField).selectable	=	false;
			
			ToolTip_Sprite.getInstance().setTip( ( this.getChildByName("item1") as DisplayObject),new MyTipSprite("10Q点消费奖励:500银币"),ToolTip_Sprite.DIRECTION_LEFT);
			ToolTip_Sprite.getInstance().setTip( ( this.getChildByName("item2") as DisplayObject),new MyTipSprite("100Q点消费奖励:薯条2个、1000银币"),ToolTip_Sprite.DIRECTION_LEFT);
			ToolTip_Sprite.getInstance().setTip( ( this.getChildByName("item3") as DisplayObject),new MyTipSprite("200Q点消费奖励:炸鸡块2个、2000银币"),ToolTip_Sprite.DIRECTION_LEFT);
			ToolTip_Sprite.getInstance().setTip( ( this.getChildByName("item4") as DisplayObject),new MyTipSprite("500Q点消费奖励:汉堡1个、深夜5把、复古5把、6000银币"),ToolTip_Sprite.DIRECTION_LEFT);
			ToolTip_Sprite.getInstance().setTip( ( this.getChildByName("item5") as DisplayObject),new MyTipSprite("1000Q点消费奖励:汉堡2个、压迫手雷5个、电击枪5个、\n激光剑5把、利刃长枪5把、12000银币"),ToolTip_Sprite.DIRECTION_LEFT);
		}
		
		public function init():void
		{
		}
		
		public function setCount(v:uint):void
		{
			this.count	=	v;
			( this.getChildByName("txtCount") as TextField).text	=	"今日已消费:"+v.toString();
		}
	}
}